package com.gdk.ksoft.data.entry.tables;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NotNull;
import com.lidroid.xutils.db.annotation.Table;
import com.lidroid.xutils.db.annotation.Unique;

/**
 * Created by hel on 2014-12-30.
 * 买赠它品数据表
 */
@Table(name = "saleother")
public class SaleBuyOtherTable extends BaseTable{

    @NotNull
    @Unique
    @Id(column = "sid")
    public int sid;

    /**
     * 买赠它品促销ID
     */
    @Column(column = "id")
    public int id;

    /**
     * 促销单据号
     */
    @Column(column = "djh")
    public String djh;

    /**
     * 主题名称
     */
    @Column(column = "zt")
    public String zt;

    /**
     * 限量
     */
    @NotNull
    @Column(column = "xl",defaultValue = "0")
    public int xl;

    /**
     * 限购
     */
    @NotNull
    @Column(column = "xg",defaultValue = "0")
    public int xg;

    /**
     * 起买量
     */
    @NotNull
    @Column(column = "qml",defaultValue = "0")
    public int qml;

//    public int xlsyl;

    /**
     * 换算关系
      */
    @NotNull
    @Column(column = "hsgx",defaultValue = "1")
    public int hsgx;
}
